home *** CD-ROM | disk | FTP | other *** search
- Path: winnie.freenet.mb.ca!lip209
- From: Barry Chodirker <lip209@freenet.mb.ca>
- Newsgroups: comp.lang.c++
- Subject: Please Help! Frustrated with Templates.
- Date: Sat, 16 Mar 1996 08:25:21 -0600
- Organization: Blue Sky FreeNet of Manitoba Inc.
- Message-ID: <Pine.SOL.3.91.960316080958.807A-100000@winnie.freenet.mb.ca>
- NNTP-Posting-Host: winnie.freenet.mb.ca
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- I'm trying to create a double linked list of pointers to a structure -
- (Record), using the Borland template TIDoubleListImp. I'm missing something
- somewhere.
-
- typedef TIDoubleListImp<Record> TheList;
-
- class ViewList {
- public:
- Record* RecPtr;
- TheList List;
- Other Members;
- };
-
- Compiling generates error "Illegal structure operation in the ClassLib
- include file "dlistimp.h" ( it's balking at the cast
-
- while( !(STATIC_CAST(T, STATIC_CAST(void*,t) ==
- *STATIC_CAST(T, etc, etc, etc)))) )
-
- Is the instantiation wrong?
-
- Your help would be gratefully appreciated. Thanks.
-